﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LdCms.IBLL.Community
{
    using LdCms.EF.DbModels;
    public partial interface IColumnService:IBaseService<Ld_Community_Column>
    {
        bool IsExists(int systemId, string companyId, string columnId);
        bool SaveColumn(Ld_Community_Column entity);
        bool SaveColumn(Ld_Community_Column entity, List<Ld_Community_ColumnPermission> lists);
        bool UpdateColumn(Ld_Community_Column entity);
        bool UpdateColumn(Ld_Community_Column entity, List<Ld_Community_ColumnPermission> lists);
        bool UpdateColumnState(int systemId, string companyId, string columnId, bool state);
        bool DeleteColumn(int systemId, string companyId, string columnId);
        Ld_Community_Column GetColumn(int systemId, string companyId, string columnId);
        List<Ld_Community_Column> GetColumnAll(int systemId, string companyId);
        List<Ld_Community_Column> GetColumnAll(int systemId, string companyId, bool state);

        int CountColumn(int systemId, string companyId);

    }
}
